﻿using Excel4DB.Util;
using Excel4DBModel;
using System;
using System.Data;

namespace Excel4DB.Con
{
    class Program
    {
        static void Main(string[] args)
        {
            var db= DataBaseFactory.Instance.Create();
            DataTable dt =db.GetDataBase();
            db.GetColumnsType(dt).ForEach(v =>
            {
                Console.WriteLine(v);
            });
            var list = dt.DataTable2List<SysDataBase>();
            list.ForEach(v =>
            {
                Console.WriteLine(v.Name + " " + v.DbId);
            });
            Console.ReadKey();
        }
    }
}
